package cn.wolfcode.wms.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

// value object ---> VO
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class JSONResult {

    private String msg;
    private boolean success = true;

    public static JSONResult mark(String msg) {
        return new JSONResult(msg, false);
    }

    public static JSONResult success(String msg) {
        return new JSONResult(msg, true);
    }
}
